import request from '@/utils/request'

//购买商品
export function buy(data) {
    return request({
      url: '/order/buy',
      method: 'post',
      data
    })
}

//获得订单列表
export function getList(params) {
  return request({
    url: '/order/getList',
    method: 'get',
    params
  })
}

//购买订单
export function del(params) {
  return request({
    url: '/order/delete',
    method: 'get',
    params
  })
}